package com.kb.util;

public class CodeMessage {


    private int retCode;
    private String message;
    // 按照模块定义CodeMessage
    // 通用异常
    public static CodeMessage SUCCESS = new CodeMessage(0,"success");
    // 业务异常
    public static CodeMessage USER_OR_PASS_ERROR = new CodeMessage(500102,"账号或者密码错误，请重试！");


    private CodeMessage(int retCode, String message) {
        this.retCode = retCode;
        this.message = message;
    }

    public int getRetCode() {
        return retCode;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
